#include<stdio.h>
#include<stdlib.h>

int compare(const void* a, const void* b)
{
	return (*(int*)a - *(int*)b);
}
int main()
{
	int arr[] = { 3, 2, 6, 8, 4, 10, 0, 9, 5, 7, 1 };
	qsort(arr, sizeof(arr) / sizeof(arr[0]), sizeof(int), compare);
	for (int i = 0; i < sizeof(arr)/sizeof(arr[0]); i++)
		printf("%d ", arr[i]);
	return 0;
}